package mysgs.gameevent.skei;

import java.util.HashMap;

import mysgs.SGSException;
import mysgs.SGSRuleDefines;
import mysgs.gameevent.SGSGameContext;
import mysgs.gameevent.SGSGameEvent;
import mysgs.role.SGSPlayer;

public class SKEventMASHU extends SGSGameEvent {

	public SKEventMASHU(SGSGameContext ctx) {
		super(ctx);
	}
	@Override
	public void init(SGSGameEvent srce, HashMap<String, Object> paramsMap) {
		eventSrcId = srce.getEventId();
		eventType1 = SGSRuleDefines.EFFECTID_SK_MASHU;

		for( SGSPlayer player : players )
		{
			if( player.hasSkill(eventType1) )
			{
				int range = player.getBaseAttRange() + 1;
				player.setBaseAttRange(range);
				player.setAttRange(range);
			}
		}
		nextStep(StepInvalid);
	}

	@Override
	protected void processCost() throws SGSException {
		// TODO Auto-generated method stub

	}

	@Override
	protected void processExecute() throws SGSException {
		// TODO Auto-generated method stub

	}

	@Override
	protected void processFinish() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void processInit() throws SGSException {
		// TODO Auto-generated method stub

	}

	@Override
	protected void processRespond() throws SGSException {
		// TODO Auto-generated method stub

	}

	@Override
	protected void processTakeout() throws SGSException {
		// TODO Auto-generated method stub

	}

	@Override
	protected void processTarget() throws SGSException {
		// TODO Auto-generated method stub

	}

}
